Skip to content

ref(onboarding): Persist project details form state in onboarding context#113128

Merged
jaydgoss merged 2 commits intomasterfrom
jaygoss/ref-onboarding-context-persist-form-state
Apr 16, 2026
Merged

ref(onboarding): Persist project details form state in onboarding context#113128
jaydgoss merged 2 commits intomasterfrom
jaygoss/ref-onboarding-context-persist-form-state

Conversation

@jaydgoss
Copy link
Copy Markdown
Member

@jaydgoss jaydgoss commented Apr 15, 2026

Add projectDetailsForm to the onboarding session state so the SCM project details step can restore the user's previous inputs (name, team, alert config, platform) when navigating back from setup-docs.

PR stack:

  • PR 1 (this): Context refactor -- persist form state
  • PR 2: Gap fixes for SCM project creation
  • PR 3: VDY-82 feature flag gating

…text

Add projectDetailsForm to the onboarding session state so the SCM
project details step can restore the user's previous inputs (name,
team, alert config) when navigating back from setup-docs. This
mirrors the pattern used by createProject.tsx which persists form
state to localStorage for the same purpose.
@jaydgoss jaydgoss force-pushed the jaygoss/ref-onboarding-context-persist-form-state branch from f1ef345 to 63dffeb Compare April 15, 2026 23:55
@jaydgoss jaydgoss marked this pull request as ready for review April 16, 2026 00:10
@jaydgoss jaydgoss requested a review from a team as a code owner April 16, 2026 00:10
Comment thread static/app/views/onboarding/scmProjectDetails.tsx
Stale projectDetailsForm could pre-fill the SCM project details step
after the user navigated back through platform features and picked a
different platform. Reset the form alongside the feature reset at each
platform-change site in scmPlatformFeatures so downstream state does
not leak across selections.

Drop the now-redundant platform field from ProjectDetailsFormState; it
was added to detect this case but was never read.
@jaydgoss jaydgoss merged commit c4eb17a into master Apr 16, 2026
65 checks passed
@jaydgoss jaydgoss deleted the jaygoss/ref-onboarding-context-persist-form-state branch April 16, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants